package com.niit.mapper;

import com.niit.entity.Dormitory;

import java.util.List;

public interface DormitoryMapper {
    List<Dormitory> availableList();

    void subAvailable(Integer id);

    void addAvailable(Integer id);

    List<Integer> findDormitoryIdByBuildingId(Integer buildingId);

    Integer findAvailableDormitoryId();

    void delete(Integer id);

    List<Dormitory> list();

    List<Dormitory> searchByName(String value);

    List<Dormitory> searchByTelephone(String value);

    void save(Dormitory dormitory);

    void update(Dormitory dormitory);

    List<Dormitory> findByBuildingId(Integer buildingId);
}
